package lxt.service;

import java.util.List;

import lxt.entity.BorrowTruckInfo;

public interface BorrowTruckService {
	/**
	 * 加载租车信息
	 * @param truckId
	 * @param ownerName
	 * @param offset
	 * @param length
	 * @return
	 * @throws Exception
	 */
	public List<BorrowTruckInfo> loadBorrowTruck(String truckId,String ownerName,String isPayed,final int offset, final int length)throws Exception;
	
	/**
	 * 根据id查找
	 */
	public BorrowTruckInfo loadBorrowTruckById(String borrowTruckId)throws Exception;
	/**
	 * 修改结清状态
	 * @param id
	 * @return
	 */
	public boolean updateBorrowTruck(BorrowTruckInfo borrowTruck)throws Exception;
	/**
	 * 查询数量
	 */
	public int loadAllBorrowTruckCount(String truckId,String ownerName,String isPayed)throws Exception;
}
